<template>
	<view class="largeCard" v-if="largeCard&&largeCard.backgroundImage">
		<image class="pic" mode="aspectFill" :src="largeCard.backgroundImage.url"></image>
		<view class="info">
			<view>
				<view class="title">{{largeCard.productName}}</view>
				<view class="price">￥{{largeCard.price.text}}</view>
			</view>
			<view class="button">{{largeCard.buttonText.text}}</view>
		</view>
		
	</view>
</template>

<script>
	export default{
		props:{
			largeCard:{type:Object}
		}
	}
</script>

<style lang="scss">
	.largeCard{
		width: 100%;
		height: 750rpx;
		border-radius: $uni-border-radius-lg;
		overflow: hidden;
		position: relative;
		.pic{
			width: 100%;
			height:750rpx;
			
		}
		.info{
			height: 100rpx;
			padding: 0 $uni-spacing-row-base;
			position:absolute;
			width: 100%;
			bottom:$uni-spacing-row-base;
			display: flex;
			justify-content: space-between;
			color:#fff;
			box-sizing: border-box;
			align-items: center;
		}
		.price{
			font-size: $uni-font-size-lg;
		}
		.button{
			padding:0 uni-spacing-row-base;
			color: #000000;
			background-color: #fff;
			border-radius: 60rpx;
			height: 60rpx;
			line-height: 60rpx;
			width: 120rpx;
			text-align: center;
		}
		
	}
</style>